package com.gitee.mars.studyabroad.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gitee.mars.studyabroad.entity.UserCollectAbroadSchool;
import com.gitee.mars.studyabroad.request.UserCollectAbroadSchoolRequest;
import com.gitee.mars.studyabroad.response.UserCollectAbroadSchoolResponse;

import java.util.List;

/**
 * UserCollectAbroadSchool 接口
 *
 * @Author wq
 * @Date 2021-04-22
 **/
public interface IUserCollectAbroadSchoolService extends IService<UserCollectAbroadSchool> {


    /**
     * 收藏或取消
     *
     * @param request request
     */
    void addOrCancel(UserCollectAbroadSchoolRequest request);

    /**
     * 收藏列表
     *
     * @param userId 用户ID
     * @return List<UserCollectCountryHomeResponse>
     */
    List<UserCollectAbroadSchoolResponse> collectList(Integer userId);
}
